<?php namespace Admin\Controller;
use Hdphp\Controller\Controller;

class IndexController extends Controller{
	public function __init(){
		if(!isset($_SESSION['info'])){
			go('Login/index');
		}
	}
	
	//载入首页方法
    public function index(){
    	View::make();
    }
	
	//退出登录方法
	public function out(){
		session_unset();
		session_destroy();
		go('Login/index');
	
	}
	
	
	public function welcome(){
		View::make();
	}
	
	
	
}
